<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加配置项</title>
<base target="_self">
<link rel="stylesheet" type="text/css" href="skin/css/base.css" />
<link rel="stylesheet" type="text/css" href="skin/css/main.css" />
</head>
<body leftmargin="8" topmargin='8'>
<form action="do_sys_conf_add.php" method="post">
<table width="98%" align="center" border="0" cellpadding="3" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px;margin-top:8px;">
  <tr>
    <td background="skin/images/frame/wbg.gif" bgcolor="#EEF4EA" class='title' colspan="2"><span><img src='skin/images/frame/arr3.gif' style='margin-right:10px;'>添加配置项</span></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td>
		<table style="margin-bottom:8px;margin-top:8px;margin-left:20px;">
			 <tr>
				<td width="100px;">配置项标题:</td>
				<td><input type="text" name="title" value="" placeholder="如:网站名称" /></td>
				<td></td>
			  </tr>
			   <tr>
				 <td>配置项名称:</td>
				 <td><input type="text" placeholder="请输入英文名称" name="uname"/></td>
				 <td></td>
			   </tr>
			   <tr>
				<td>配置项内容:</td>
				<td id="wbk"><input type="text" name="content"></td>
				<td ></td>
			   </tr>
			   <tr>
				 <td>配置项类型:</td>
				 <td><input type="radio" name="text" checked onclick="test()" value="text">文本框 <input type="radio" name="text" onclick="test1()" value="textarea"> 文本域
				 </td>
				 <td></td>
			   </tr>
			   <tr>
				 <td colspan="2" align="center" height="40px">
					<input type="submit" name="sub" value=" 添加 " />
					<td></td>
				</td>
			   </tr>
		</table>
	</td>
  </tr>
</table>
</form>
<script type="text/javascript">

	wbk=document.getElementsById("wbk");
	function test()
	{
		wbk.innerHTML="<input type='text' placeholder='如:欣才商城' name='content'/>";
	}
	function test1()
	{
		wbk.innerHTML="<textarea cols='15' rows='5' name='content'></textarea>";
	}
</script>
</body>
</html>
